# 员工的增删改查
import unittest
from api.user import UserAPI


class TestUser(unittest.TestCase):
    def setUp(self):
        self.user = UserAPI()

    def test01_add(self):
        add_data = {
            "username": "sam10709t2",
            "mobile": "13212330154",
            "timeOfEntry": "2020-07-09",
            "formOfEmployment": 1,
            "workNumber": "21178",
            "departmentName": "销售",
            "departmentId": "1266699057968001024",
            "correctionTime": "2020-07-30T16:00:00.000Z"
        }
        response = self.user.add(add_data)
        print(response.json())
        self.assertEqual(200, response.status_code)

